import { request } from "@/utils/request002";

// 分页
export const queryDataPage = (data: any) => {
  return request({
    url: '/organization/page',
    method: 'POST',
    data
  })
}

// 新增教师
export const addTeacher = (data: any) => {
  return request({
    url: '/organization/addTeacher',
    method: 'POST',
    data
  })
}

// 删除教师
export const deleteTeacher = (data: any) => {
  return request({
    url: '/organization/deleteTeacher',
    method: 'POST',
    data
  })
}

// 编辑教师
export const editTeacher = (data: any) => {
  return request({
    url: '/organization/editTeacher',
    method: 'POST',
    data
  })
}

// 重置密码
export const resetPass = (data: any) => {
  return request({
    url: '/organization/resetPassword',
    method: 'POST',
    data
  })
}

// 职位下拉
export const queryRoleList = () => {
  return request({
    url: '/organization/roleList',
    method: 'GET'
  })
}